import request from '@/utils/request';
// 获取提现数据
export function getUserList(params) {
  return request({
    url: '/withdrawal',
    method: 'GET',
    params,
  });
}
// 新增提现
export function addUserList(data) {
  return request({
    method: 'POST',
    url: '/withdrawal',
    data,
  });
}
// 编辑提现数据
export function editUserList(data, id) {
  return request({
    method: 'PATCH',
    url: `/withdrawal/${id}`,
    data,
  });
}
// 删除数据
export function delData(id) {
  return request({
    method: 'DELETE',
    url: `/withdrawal/${id}`,
  });
}
